/**
 * MotionResult.java
 *
 */

 package gamepack;

import java.util.Vector;
import java.util.Enumeration;



// returns the result of canMove(dx,dy) methods...
// See Motion.canMove() methods for more information.
 public class MotionResult {
        // sigifies can move, the movement may be partial or even max
        // distance requested.
        public boolean canMove;

        // Signifies can move max distance that was requested.
        public boolean canMoveMax;

        // This is the extent to which movement is possible.
        public int dx,dy;

        public MotionResult(boolean canMove, boolean canMoveMax, int dx,int dy) {
            this.canMove = canMove;
            this.canMoveMax = canMoveMax;
            this.dx = dx;
            this.dy = dy;
        }
 }